package com.rhem.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem;

public class MyMenuBar extends MenuBar{
	private List<MenuItem> list = new ArrayList<MenuItem>();
	
	public MenuItem addItem(MenuItem item){
		MenuItem myitem = super.addItem(item); 
		list.add(myitem);
		return myitem;
	}
	
	public void removeStyleNameAll(String style){
		for(MenuItem it :list){
			it.removeStyleName(style);
		}
	}
}
